package com.zhx.basis.设计模式.抽象工厂.demo1;

import lombok.extern.slf4j.Slf4j;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Slf4j
public class IIR {
    
    Map<String, String> map = new ConcurrentHashMap<String, String>();

    public String getIIR(String key) {
        log.info("IIR获取数据{}", key);
        return map.get(key);
    }

    public void putIIR(String key, String value) {
        log.info("IIR存入数据：key {} ,val{}", key, value);
        map.put(key, value);
    }

    public void removeIIR(String key) {
        log.info("IIR移除数据{}", key);
        map.remove(key);
    }

}
